import java.util.Date;

class Customer
{
	String custName;                //客户姓名       
	String sex;                     //客户性别
	Date birth;                     //出生日期
	Integer points;                 //客户积分
	Integer custLevel;              //客户级别
	Double memFee;                  //会员费 
	String memo;                    //备注
	Date ctime = new Date();        //记录创建时间
	Integer isdel = 0;              //预备假删除字段  1:删除
	
	String toString() { custName }
	
	static constraints = 
	{
		custName(blank:false, maxSize:30)
		sex(maxSize:1, inList:['男', '女'])
		birth(blank:false)
		points(blank:false)
		custLevel(inList:[1, 2, 3])
		memFee(scale:2)
		memo(maxSize:300)
		ctime(display:false)
		isdel(display:false)
	}
}
